package com.jast.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jast.common.annotation.Excel;
import com.jast.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * HDFS监控指标近3天指标对象 bigdata_hdfs_kv_line
 * 
 * @author Jast
 * @date 2023-02-08
 */
public class BigdataHdfsKvLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 类型,n:NameNode,d:DataNode,a:整体 */
    @Excel(name = "类型,n:NameNode,d:DataNode,a:整体")
    private String htype;

    /** 监控指标key */
    @Excel(name = "监控指标key")
    private String hkey;

    /** 监控指标值 */
    @Excel(name = "监控指标值")
    private String hvalue;

    /** 节点ip */
    @Excel(name = "节点ip")
    private String node;

    /** 所属集群 */
    @Excel(name = "所属集群")
    private String cluster;

    /** 监控时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "监控时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date monitorTime;

    private String time;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHtype(String htype) 
    {
        this.htype = htype;
    }

    public String getHtype() 
    {
        return htype;
    }
    public void setHkey(String hkey) 
    {
        this.hkey = hkey;
    }

    public String getHkey() 
    {
        return hkey;
    }
    public void setHvalue(String hvalue) 
    {
        this.hvalue = hvalue;
    }

    public String getHvalue() 
    {
        return hvalue;
    }
    public void setNode(String node) 
    {
        this.node = node;
    }

    public String getNode() 
    {
        return node;
    }
    public void setCluster(String cluster) 
    {
        this.cluster = cluster;
    }

    public String getCluster() 
    {
        return cluster;
    }
    public void setMonitorTime(Date monitorTime) 
    {
        this.monitorTime = monitorTime;
    }

    public Date getMonitorTime() 
    {
        return monitorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("htype", getHtype())
            .append("hkey", getHkey())
            .append("hvalue", getHvalue())
            .append("node", getNode())
            .append("cluster", getCluster())
            .append("monitorTime", getMonitorTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
